import { useDetailstore } from '../../stores/modules/detailStore';
import myAxios from '../reqquest/index'

const detailStore = useDetailstore();

export function getDatailData(houseId) {
    myAxios.get({
        url: "/detail/infos",
        params: {
            houseId:houseId
        }
    }).then(res => {
       detailStore.detailData = res.data;
       console.log("detailData:",detailStore.detailData);
     
    }).catch(err => {
        console.log("err",err)
    })
}